<?php
$path = dirname(__FILE__);

$url= "https://kioskpublicapi.luckydragon88.com/player/deposit/playername/FK8S74110SOL/amount/1/adminname/VBETCNYFK8/externaltranid/test12311120";
$entity_key= "c2b53afd4b594a50bf40119286712d57ce5b897e9a88682819d211c2dd572bd614ab695a9c0a4b9eb04e35faf4fe9bbd035f81f98135abea2fc88552bf4be6c7";

$header   = array();
$header[] = "Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
$header[] = "Cache-Control: max-age=0";
$header[] = "Connection: keep-alive";
$header[] = "Keep-Alive:timeout=5, max=100";
$header[] = "Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3";
$header[] = "Accept-Language:es-ES,es;q=0.8";
$header[] = "Pragma: ";
$header[] = "X_ENTITY_KEY: " . $entity_key;

$tuCurl= curl_init();
curl_setopt($tuCurl, CURLOPT_URL, $url);
curl_setopt($tuCurl, CURLOPT_PORT , 443);
curl_setopt($tuCurl, CURLOPT_VERBOSE, 0);
curl_setopt($tuCurl, CURLOPT_HTTPHEADER, $header);
curl_setopt($tuCurl, CURLOPT_TIMEOUT, 60000 );
curl_setopt($tuCurl, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($tuCurl, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($tuCurl, CURLOPT_SSLCERT, $path . '\api\pt.pem');
curl_setopt($tuCurl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($tuCurl, CURLOPT_SSLKEY, $path . '\api\pt.key');

$exec = curl_exec($tuCurl);

curl_close($tuCurl);
$data = json_decode($exec, TRUE);
var_dump($exec);
echo"<pre>";
print_r($data);
echo"</pre>";
